<?php

class Tag_Block_Cloud extends Kernel_Block
{

	/**
     * Return template data.
     *
     * @return  array
     */
    public function getData()
    {
		$cloud = Gallery_Model_Tags::getInstance()->getTagCloud(Tag_Utils::TYPE_BLOCK);
		
        return array
			(
				'cloud' => $cloud,
				'count' => $cloud->getItemList()->count(), 
			);
	}

}